<#setting classic_compatible=true> <#assign
	base=request.contextPath /> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="${base}/zhgl-jzstyxx-manage/css/messagePandect/messagePandect.css">
<link rel="stylesheet" type="text/css" href="${base}/zhgl-jzstyxx-manage/css/overview/overView.css">
<link rel="stylesheet" type="text/css" href="${base}/zhgl-jzstyxx-manage/css/system/changeStyle.css">
<title>统一消息中心</title>
<!-- 引入通用css -->
<#include "/common/commoncss.ftl">
</head>

<body>
	<!-- 标题栏区域 -->
	<div class="titleColumn">
		<!-- <span class="iconfont icon-peizhi"></span><span id="messagePan" style="margin-left: 20px;">消息总览</span> -->
		<span class="iconfont icon-peizhi"></span><span style="margin-left:20px;">编辑电子合同</span>&nbsp;&nbsp;<span class="fa fa-angle-right"></span>&nbsp;&nbsp;<span id="messagePan">电子合同</span>
	</div>
	<!-- 正文区域 -->
	<div class="contentTable">
		<!-- 编辑电子合同 -->
		<div class="now">
			<input type="text" name="text1" id="text1">
			<input type="text" name="text2" id="text2">
    		<input type="button"  onclick="editWord()" value="编辑电子合同  windows版本"/>
		</div>
		
		<!-- 将Word转为pdf -->
		<div class="now">
			<input type="text" name="text3" id="text3">
			<input type="text" name="text4" id="text4">
    		<input type="button"  onclick="wordtopdf()" value="编辑电子合同 openfile版本"/>
		</div>
		
		
	</div>
	

	<!-- 引入通用和js -->
	<#include "/common/commonjs.ftl"> 
	<script type="text/javascript" src="${base}/zhgl-jzstyxx-manage/js/login/jquery.cookie.js"></script>
	<script type="text/javascript" src="${base}/zhgl-jzstyxx-manage/js/login/jquery.session.js"></script>
	<script type="text/javascript">
	/* 生成电子doc,docx */	
	function editWord(){
		var text1=$("#text1").val();
		var text2=$("#text2").val();
		$.ajax({
			"type":"POST",
			"url":"../index/editWord",
			"dataType":"json",
			"data":{"text1":text1,"text2":text2},
			"success":function(obj){
				console.log("success"+obj);
				alert("success"+obj);
			},
			"error":function(obj){
				console.log("error:"+obj);
				alert("error:"+obj);
			}
		});
	};
	
	
	/* word转为pdf */
	function wordtopdf(){
		var text3=$("#text3").val();
		var text4=$("#text4").val();
		$.ajax({
			"type":"POST",
			"url":"../index/wordtopdf",
			"dataType":"json",
			"data":{"text1":text3,"text2":text4},
			"success":function(obj){
				console.log("success"+obj);
				alert("success"+obj);
			},
			"error":function(obj){
				console.log("error:"+obj);
				alert("error:"+obj);
			}
		});
	}
	
	
	</script>


</body>
</html>